﻿namespace Innovative.ProXr
{
	public enum Flasher
	{
		One = 1,
		Two = 2,
		Three = 3,
		Four = 4,
		Five = 5,
		Six = 6,
		Seven = 7
	}

	/// <summary>
	/// Converts a Flasher enumeration value to a RelayByte array.
	/// </summary>
	public class FlasherParameterConverter : IParameterConverter<Flasher>
	{
		RelayByte[] IParameterConverter<Flasher>.Convert(Flasher parameter)
		{
			RelayByte[] returnValue = new RelayByte[1];

			returnValue[0] = (byte)parameter;

			return returnValue;
		}
	}
}
